package com.example.newwork

sealed class NetResource<out T:Any> {
    data class doSuccess<out T:Any>(val t: T?) :NetResource<T>()
    data class doFailure(val errorMsg:String):NetResource<Nothing>()
    data class doLoading(val t: Boolean):NetResource<Nothing>()
}